package edu.gu.hajo.gcl.cmd.impl;

import edu.gu.hajo.gcl.interp.IInterpreter;

public final class SetCmd extends AbstractCmd{

	public SetCmd(IInterpreter interp) {
		super(interp);
	}

	public  void  execute() {
		if( args.size() != 2){
			throw new RuntimeException("set: Wrong # args");
		}
		interp.setVar(args.get(0), args.get(1));
		interp.setResult(args.get(1));
	}
}
